package com.epin.business.system.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author 
 * @since 2017-10-31
 */
@TableName("t_resource")
public class Resource extends Model<Resource> {

    private static final long serialVersionUID = 1L;

    /**
     * 资源id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 资源父id
     */
	@TableField("parent_id")
	private Integer parentId;
    /**
     * 资源名称
     */
	private String name;
    /**
     * 资源唯一标识
     */
	@TableField("source_key")
	private String sourceKey;
    /**
     * 资源类型,0:目录;1:菜单;2:按钮
     */
	private Integer type;
    /**
     * 状态数据，0表示禁用/停用，1表示启用/可用
     */
	private Integer status;
	/**
	 * 是否隐藏：0否；1是
	 */
	@TableField("is_hide")
	private Integer isHide;
    /**
     * 资源url
     */
	@TableField("source_url")
	private String sourceUrl;
    /**
     * 图标
     */
	private String icon;
    /**
     * 描述
     */
	private String description;
    /**
     * 创建者ID
     */
	@TableField("creator_id")
	private Integer creatorId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新者ID
     */
	@TableField("updator_id")
	private Integer updatorId;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSourceKey() {
		return sourceKey;
	}

	public void setSourceKey(String sourceKey) {
		this.sourceKey = sourceKey;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Integer getIsHide() {
		return isHide;
	}
	
	public void setIsHide(Integer isHide) {
		this.isHide = isHide;
	}

	public String getSourceUrl() {
		return sourceUrl;
	}

	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdatorId() {
		return updatorId;
	}

	public void setUpdatorId(Integer updatorId) {
		this.updatorId = updatorId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
